import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import tabsview from './modules/tabsview'
import language from './modules/language'
import permission from './modules/permission'
import adminManage from './modules/admin_manage'
import employeeManage from './modules/employee_manage'
import productManage from './modules/product_manage'
import orderManage from './modules/order_manage'
import promotionManage from './modules/promotion_manage'
import creditManage from './modules/credit_manage'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    tabsview,
    language,
    permission,
    adminManage,
    productManage,
    employeeManage,
    orderManage,
    promotionManage,
    creditManage
  }
})
